/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.teach.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;

import com.lczyfz.istep.common.persistence.DataEntity;

/**
 * 考试管理Entity
 * @author cqh
 * @version 2017-01-12
 */
public class TeachExam extends DataEntity<TeachExam> {
	
	private static final long serialVersionUID = 1L;
	private String examName;		// 考试科目名称
	private Date beginDate;			// 考试开始时间
	private Date endDate;			// 考试结束时间
	private String examStatus;		// 考试状态
	private String answerTime;		// 答题时间
	private String examFrequency;		// 可参加考试次数
	private String ifCheckAnswer;		// 是否可以查看答题情况
	private String distributeId;            //下发id
	private String paperId;				// 试卷id

	private String userId;				// 学生id
	private Date beginBeginDate;		// 考试开始时间范围
	private Date beginEndDate;			// 考试开始时间范围
	private Date endBeginDate;			// 考试结束时间范围
	private Date endEndDate;			// 考试结束时间范围

	private String name;   // 学生姓名
	private String paperName; // 考卷名称


	public TeachExam() {
		super();
	}

	public TeachExam(String id){
		super(id);
	}

	@Length(min=1, max=64, message="考试科目名称长度必须介于 1 和 64 之间")
	public String getExamName() {
		return examName;
	}

	public void setExamName(String examName) {
		this.examName = examName;
	}
	
	@Length(min=1, max=4, message="考试状态长度必须介于 1 和 4 之间")
	public String getExamStatus() {
		return examStatus;
	}

	public void setExamStatus(String examStatus) {
		this.examStatus = examStatus;
	}
	
	public String getAnswerTime() {
		return answerTime;
	}

	public void setAnswerTime(String answerTime) {
		this.answerTime = answerTime;
	}
	
	@Length(min=1, max=64, message="可参加考试次数长度必须介于 1 和 64 之间")
	public String getExamFrequency() {
		return examFrequency;
	}

	public void setExamFrequency(String examFrequency) {
		this.examFrequency = examFrequency;
	}
	
	@Length(min=1, max=4, message="是否可以查看答题情况长度必须介于 1 和 4 之间")
	public String getIfCheckAnswer() {
		return ifCheckAnswer;
	}

	public void setIfCheckAnswer(String ifCheckAnswer) {
		this.ifCheckAnswer = ifCheckAnswer;
	}

	public String getPaperId() {
		return paperId;
	}

	public void setPaperId(String paperId) {
		this.paperId = paperId;
	}

	public String getDistributeId() {
		return distributeId;
	}

	public void setDistributeId(String distributeId) {
		this.distributeId = distributeId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Date getBeginBeginDate() {
		return beginBeginDate;
	}

	public void setBeginBeginDate(Date beginBeginDate) {
		this.beginBeginDate = beginBeginDate;
	}

	public Date getBeginEndDate() {
		return beginEndDate;
	}

	public void setBeginEndDate(Date beginEndDate) {
		this.beginEndDate = beginEndDate;
	}

	public Date getEndBeginDate() {
		return endBeginDate;
	}

	public void setEndBeginDate(Date endBeginDate) {
		this.endBeginDate = endBeginDate;
	}

	public Date getEndEndDate() {
		return endEndDate;
	}

	public void setEndEndDate(Date endEndDate) {
		this.endEndDate = endEndDate;
	}

	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPaperName() {
		return paperName;
	}

	public void setPaperName(String paperName) {
		this.paperName = paperName;
	}
}